home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr39
/
diet0b26.zip
/
DIET.DOC
next >
Wrap
Text File
|
1995-02-21
|
22KB
|
486 lines
===<SOT>=======================================================================
ABSTRACT: Documentation for DIET
Copyright (C)1994-1995 C B Dunne
AUTHOR: C B Dunne
ORIGINATION: 21-Dec-1994
DATE: 21-Feb-1995
PROGRAM VERSION: Beta 0.26
PROGRAM DATE: 21-Feb-1995
EXPIRY DATE: 31-Mar-1995
===<NOTE>======================================================================
This documentation describes the beta release of DIET. You are required to
read the section LICENSE AGREEMENT and agree to its terms before using DIET.
===<DESCRIPTION>===============================================================
DIET resolves cross-references in the NetScape cache, so that NetScape can be
used to browse the files locally. Cross-references will be read directly from
the cache; NetScape will not attempt to go on-line to check for updates.
DIET also has an option to rename NetScape's ".MOZ" files in accordance with
the file type and accepted MS-DOS/Windows practice, i.e. ".TXT" for text files,
".JPG" for JPEG files etc. Note that this option is enabled in the beta
release for the purpose of testing. It will be disabled in the shareware
release and enabled in the registered version.
===<PROGRAM REQUIREMENTS>======================================================
The program requires:
■ A 386 or better processor;
■ MS-DOS version 3.10 or later;
■ At least 64K of available DOS conventional memory.
Recommended:
■ A fast hard disk;
■ At least 128K of available DOS conventional memory.
===<USAGE>=====================================================================
To prepare DIET for use:
■ Copy all the distribution files into your NetScape directory.
■ Create a new directory for the cached files you wish to process, e.g.
C:\NETSCAPE\LOCAL
■ Edit the file 'DIET.INI' so that the item 'Cache Dir' in section '[DIET]'
points to the directory thus created (you will only have to do this once).
■ Add DIET to the NetScape program group under Windows (if desired).
To run DIET:
■ Copy the entire NetScape cache into the directory created above.
■ Run DIET from the MS-DOS command line (any parameters will be ignored), or
from a MS-DOS prompt box under Windows. Alternatively, click on the DIET
icon under Windows.
WARNING:
DIET can be run on the files in situ in the NetScape cache. However, this will
cause NetScape to get terminally confused, and it may delete the files on exit.
Always run DIET on a copy of the cache, not the cache itself.
===<CONFIGURATION>=============================================================
All configuration is done via the DIET.INI file. This is a standard Windows
style initialization file with three sections: [DIET], [Links] and [Types].
(Note that most of the configurability is intended as a safeguard against minor
revisions to NetScape or new releases of the HTML spec, and would not normally
be modified.)
The [DIET] section configures DIET and has the following entries:
Cache Dir Specifies the path to the cache (i.e. names the
directory containing FAT), overriding the value
in NETSCAPE.INI if present.
The default value is blank, i.e. use the value
in NETSCAPE.INI.
Truncate Name At Specifies up to 4 characters which, if found in
a remote name in the FAT file, will cause the
name to be truncated at the earliest such
character.
The default value is blank, i.e. do not
truncate. Do not modify.
Skip Name After Specifies up to 4 skip characters. The remote
name in a link is matched against file names in
FAT up to and not including the first skip
character. (The skip character and subsequent
characters are appended to the transformed name
after substitution.)
The default value is '#', specifying anchor
points. Do not modify.
Time Stamp If 'DIET', DIET changes the time stamp entry
in the FAT for each modified file to reflect
the file's actual time stamp; if 'NetScape',
DIET stamps the file with the time stamp taken
from the NetScape FAT; otherwise, the FAT time
stamp is left unchanged and the file time stamp
reflects the (DIET) modification time.
The default value is 'None'.
Backup Files If 'Yes', DIET renames the original FAT file
and each cached file to a ".BAK" file; if
'No', DIET deletes the original FAT and ".MOZ"
files after processing.
The default value is 'No'.
Rename Files If 'Yes', DIET changes the filename extension
of *all* files (not just text files) to the
appropriate extension for the type of file
(e.g. ".HTM", ".GIF" or ".JPG"), modifying FAT
as required; if 'No', filename extensions are
left unchanged.
The default value is 'No'. See warning.
(This option is not supported by the shareware
version.)
Full Local Paths If 'Yes', DIET replaces each local name with
the full pathname of the cached file; if 'No',
only the filename part of the cached file is
used.
The default value is 'No'. Do not modify.
Full Remote Paths If 'Yes', DIET replaces each remote name with
the full pathname of the remote file; if 'No',
remote filenames are not modified.
The default value is 'Yes'. Do not modify.
Verbose If 'Yes', DIET displays each file as it is
processed; if 'No', DIET proceeds silently.
The default value is 'Yes'.
The [Links] section contains up to 16 entries. Each entry specifies a link
name (i.e. the search string for cached filename substitution). The entry
names are ignored but must differ, and the simplest convention is to make the
entry name the same as the link name.
The maximum length of a link name is 15 characters. The default values are:
HREF = HREF
SRC = SRC
Entries in this section should not be modified.
The [Types] section contains up to 64 entries. Each entry specifies a type of
file (e.g. an image or text file) and the MS-DOS filename extension associated
with that type of file.
The maximum length of a type name is 31 characters, and the maximum length of a
type extension is 3 characters. The period should not be included in the
extension. Spaces are ignored. The default values are:
fif = applications/fractals
hqx = application/mac-binhex40
sit = application/x-stuffit
exe = application/octet-stream
ps = application/postscript
rtf = application/rtf
csh = application/x-csh
ltx = application/x-latex
sh = application/x-sh
man = application/x-troff-man
zip = application/x-compressed
tar = application/x-tar
au = audio/basic
aif = audio/x-aiff
wav = audio/x-wav
gif = image/gif
jpg = image/jpeg
tif = image/tiff
ras = image/x-cmu-raster
pnm = image/x-portable-anymap
pbm = image/x-portable-bitmap
pgm = image/x-portable-graymap
ppm = image/x-portable-pixmap
rgb = image/x-rgb
xbm = image/x-xbitmap
xpm = image/x-xpixmap
htm = text/html
txt = text/plain
rtx = text/richtext
mpg = video/mpeg
qt = video/quicktime
avi = video/x-msvideo
mov = video/x-sgi-movie
Entries in this section should not be modified.
NOTES:
■ Default values are used when the section or entry name(s) in the DIET.INI
file is/are missing or incorrect.
■ If the file DIET.INI is not found, DIET will create one with all defaults.
■ Entry names should not contain semicolons, colons, equal signs or square
brackets. This is particularly important for type names.
WARNING:
■ NetScape deletes on exit any cached file not having the extension ".MOZ".
You should avoid using the "Rename Files" option within the cache
directory. Before enabling this option, copy the entire cache to another
directory, remembering to also modify the item "Cache Dir" to reflect the
change.
===<THE MO>====================================================================
When DIET is run, it first configures itself according to the INI file. It
then uses the NETSCAPE.INI file to find the cache directory, and reads the FAT
file therefrom.
The FAT file consists of a series of entries of the form:
<cache time> <local name> <remote name> <type> <length>
(there is some other information also, but this is ignored). DIET builds a
list of these entries.
The list is then traversed. For each file on the list, DIET checks to see if
it is an HTML file. If it isn't, the file is left unchanged. If it is an HTML
file, DIET reads each line and looks for a cross-reference ('link').
For each link found, DIET resolves the (remote) pathname, substituting '.' and
'..' etc., to obtain the full remote pathname. It then checks to see if this
name is on the list.
If the name is not on the list, then the file is not cached. In this case,
the name is left unchanged, unless "Full Remote Paths" is 'Yes' in the DIET.INI
file, when the full remote pathname is substituted.
If the name is on the list, then the file is cached. In this case, DIET
replaces the name with the corresponding local name from the list: either the
full pathname or the filename part only is used, according to the value of
"Full Local Paths" in the DIET.INI file.
If the original remote name contained a skip character, this and subsequent
characters are appended to the substituted (local) name.
After all substitutions have occurred, DIET will either delete or rename the
old file (according to the value of "Backup Files" in the DIET.INI file) and
replace it with the new file.
Finally, after all files have been processed, DIET will rewrite the FAT file
with the (possibly different) file lengths. If "Rename Files" is 'Yes' in the
DIET.INI file, then DIET will rename each file according to the details in the
[Types] section of the DIET.INI file. DIET will either delete or rename the
old FAT (according to the value of "Backup Files" in the DIET.INI file).
===<RESTRICTIONS>==============================================================
The list of files is built in memory, and this restricts its size. (Each list
entry requires typically about 128 bytes.)
Only HTML files are processed. These are recognized by having type "text/html"
in the FAT file. Other files containing file names are not modified; in
particular, text/plain and GIF89a files may contain file names embedded in the
text, but these are not recognized by DIET and are left unchanged.
Links in the FAT file are *not* removed by DIET, on the assumption that you may
in the future access further remote files with links to a local file and
re-DIET these.
The beta release (irrespective of the state of "Verbose") produces an
advertisement banner before execution. See the section BETA RELEASE for more
details.
===<BETA RELEASE>==============================================================
The beta release has an expiry date. Any attempt to use the program after that
date will fail. After that date, you must stop using this version of DIET and
delete all copies of it in your possession. The intention is that a new
version of DIET will be distributed as shareware at that time.
Any attempt to disable, suppress or modify the opening screen advertisement
banner, the key check or the delay routine, or to modify the program in any
other way, constitutes a breach of the beta release license agreement and
infringes the author's copyright and intellectual property rights.
You may use this program in accordance with the terms of the LICENSE AGREEMENT
which you are required to read before using the program, until the expiry date.
If you experience any difficulties, locate any bugs or have any suggestions how
DIET might be improved, please contact the distributor at:
Metrotel Multi-Media Ltd.
Premier House
2 Gayton Road
HARROW
Middlesex
HA1 2XU
United Kingdom
Or telephone:
+44 181 863 9001 (outside UK)
0181 863 9001 (UK only)
===<LICENSE AGREEMENT>=========================================================
METROTEL MULTI-MEDIA LTD declares that it does not sell or transfer any rights
in its software but merely grants the right to use its software by means of
this Software License Agreement. METROTEL MULTI-MEDIA LTD specifically retains
the title to all its computer software.
1 DEFINITIONS
1.1 The licensee is the person, persons or organization using or possessing
DIET or any part thereof as defined under clause (1.3).
1.2 The licensor is:
Metrotel Multi-Media Ltd.
Premier House
2 Gayton Road
HARROW
Middlesex
HA1 2XU
Tel. 0181-863 9001
1.3 The term DIET refers to this beta release of the machine executable
program and/or ancillary files and includes all source code, executables,
data files, libraries, help files, documentation, utilities and other
software components as shipped, or any part thereof.
1.4 The term instance of DIET refers to DIET as stored, whether physically,
electronically or otherwise, and whether in machine-readable form,
human-readable form or otherwise, on paper, floppy disk, hard disk,
CD-ROM, magnetic tape or other media.
1.5 The term user data refers to any configuration, data, batch, program or
other file created by the licensee with, or in conjunction with DIET.
2 TERMS
2.1 In any dispute arising as a result of this license, the laws of England
shall apply.
2.2 This license constitutes a binding legal agreement between the licensee
and the licensor, and its terms and conditions constitute the entire
agreement between those parties, superseding all previous agreements,
representations, understandings and negotiations.
2.3 If any terms or conditions of this license shall be found to be illegal
or unenforceable then, notwithstanding, this license shall remain in full
force and effect and such terms or conditions shall be deemed stricken.
2.4 This license may not be amended other than in writing signed by an
authorized representative of the parties. No amendment of this license
shall be effective unless it is in writing and signed by duly authorized
representatives of both parties.
2.5 No term or condition hereof shall be deemed waived and no breach excused
unless such waiver or consent shall be in writing and signed by the party
claimed to have waived or consented. Any consent by any party to or
waiver of a breach by the other, whether express or implied, shall not
constitute a consent to, waiver of or excuse for any other, different or
subsequent breach.
2.6 This license shall be binding on and shall inure to the benefit of the
heirs, executors, administrators, successors and assignees of the parties
hereto, but nothing in this paragraph shall be construed as a consent to
any assignment of this license by either party except as provided herein.
2.7 If the licensee retains one or more instance(s) of DIET, the licensee is
deemed to have accepted this license, and all its terms and conditions.
2.8 If the licensee does not wish to accept this license, or upon termination
hereof, the licensee must immediately destroy or return to the licensor
any instance of DIET remaining in the possession of the licensee.
2.9 The obligations under clause (2.8) shall survive the termination or
rescission of this license.
2.10 Upon acceptance of this license, the licensor grants the licensee the
non-exclusive, non-transferable right to use DIET on any computer in any
configuration for the purposes of evaluation and trial use only.
2.11 The licensee may freely distribute this beta release to any person,
computer, company, site or network, in any archive format, provided that:
1. None of the original files are modified, including this file.
2. All of the original files are included, including this file.
3. The release is clearly and prominently described as a beta release for
the purposes of testing and development only.
4. The licensee makes no proprietary claim in respect of any file
distributed as part of DIET.
2.12 The licensee may charge a nominal fee for the distribution of DIET,
provided that it clearly and prominently stated that payment of such a
fee is for distribution only and does not constitute consideration in
respect of this agreement to confer any benefit or right under any term
or terms hereof.
2.13 The licensee may not decompile, disassemble, modify, patch or in any way
reverse-engineer any instance of DIET, nor distribute any program or
procedure performing, or information describing such a process.
2.14 The licensee may otherwise distribute without royalty any user data
pertaining to any instance of DIET, provided that the licensee
indemnifies, holds harmless and defends the licensor from and against any
action arising out of such distribution.
2.15 While the licensor intends to distribute a commercial release of DIET,
the licensor reserves the right at any time not to release a commercial
release of DIET or, if released, to alter prices, features,
specifications, capabilities, functions, licensing terms, release dates,
general availability or other characteristics of the commercial release.
3 TERMINATION
3.1 This license may be terminated by the licensor if, at any time, the
licensee:
1. Fails to comply with any material term or condition thereof, and;
2. Fails to cure such failure within fifteen days after notices of such
failure by the licensor.
3.2 This license may be terminated by the licensor if, at any time, the
licensee's normal business operations are disrupted or discontinued for
more than thirty days by reason of insolvency, bankruptcy, receivership,
or business termination.
3.3 The licensee may at any time terminate this license by complying with
the obligations under clause (2.8).
3.4 This license shall terminate on the stated expiry date.
4 LIMITED WARRANTY
4.1 DIET is provided gratuitously and, accordingly, the licensor shall not be
liable under any theory or any damages suffered by the licensee.
4.2 The licensor will not support DIET and will not issue updates to DIET.
5 WARRANTY LIMITATIONS AND DISCLAIMERS
5.1 The licensor makes no warranties, either express or implied, with respect
to the use of DIET, its performance or its fitness for any particular
use. DIET is licensed "as is" and in no event will the licensor be
liable for direct, indirect, incidental or consequential damages
resulting from use of DIET even if the licensor has been advised of the
possibility of such damages.
5.2 The licensor disclaims all other warranties, whether express or implied
(including, but not limited to, implied warranties of merchantability or
fitness for a particular purpose) to the maximum extent permissible under
applicable law.
5.3 The licensor disclaims all liability in respect of loss (including but
not limited to loss of profits, revenue or savings, loss of information,
interruption of business, or other loss) arising out of the use of, or
inability to use DIET, to the maximum extent permissible under applicable
law.
===<INTELLECTUAL PROPERTY RIGHTS>==============================================
All source code, executables, data files, libraries, help files, documentation,
utilities and other ancillary components of DIET as shipped are copyright
material. All rights are reserved by the copyright owner(s):
DIET program:
(C)1994-1995 C B Dunne
CEXT utility library:
(C)1984-1995 C B Dunne
DIET source code:
(C)1994-1995 C B Dunne
DIET documentation:
(C)1994-1995 C B Dunne
DIET beta icon, DIET shareware icon and DIET icon:
(C)1995 C B Dunne
MS Run-Time Library
(C)1992 Microsoft Corp.
All trademarks are acknowledged.
===<EOT>=======================================================================